#pragma once
#include"hash.h"
namespace tmt
{
	template<class K, class Hash = HashFunc<K>>
	class unordered_set
	{
		struct MapKeyOfT
		{
			const K& operator()(const K& key)
			{
				return key;
			}
		};
		typedef typename HashBucket::HashTable<K, K, Hash, MapKeyOfT>::iterator iterator;
	public:
		bool insert(const K& key)
		{
			return _HT.insert(key);
		}
		iterator begin()
		{
			return _HT.begin();
		}
		iterator end()
		{
			return _HT.end();
		}
	private:
		HashBucket::HashTable<K, K , Hash, MapKeyOfT> _HT;
	};
}